

package com.maoshi.shop.discount.api.service;

import com.maoshi.shop.bean.app.dto.ChooseDiscountItemDto;
import com.maoshi.shop.bean.app.dto.ProductItemDto;
import com.maoshi.shop.discount.api.dto.DiscountSumDto;

import java.util.List;

public interface DiscountManagerService {

    DiscountSumDto calculateDiscount(Long shopId, List<? extends ProductItemDto> productItems);

    ChooseDiscountItemDto getChooseDiscountItemDto(DiscountSumDto discountSumDto, Long discountId);

}
